<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'addUI.jsp' starting page</title>
    <link rel="stylesheet" href="<%=path %>/siteresource/css/global.css" type="text/css"/>
	<link rel="stylesheet" href="<%=path %>/siteresource/css/list.css" type="text/css"/>
	<link rel="stylesheet" href="<%=path %>/siteresource/css/menu.css" type="text/css"/>
	<script src="<%=path %>/siteresource/js/fixPNG.js" type="text/javascript"></script>
	<script type="text/javascript" src="<%=path %>/siteresource/js/jqueryui-1.8.min.js"></script>
<script type="text/javascript" src="<%=path %>/siteresource/js/manhuaDate.1.0.js"></script>
    <script type="text/javascript" src="<%=path %>/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript">
   
        $(function(){
        	$("#form1").submit(function(){
        		return checkName();
        	});
        });
        function checkName(){
        	var nameCn=$("#nameCn").val();
        	if(nameCn.length==0){
        		alert('xx');
        		return false;
        	}
        	return true;
        }
        
    </script>
  </head>
  
  <body>
  
 
<div class="infolist">
<s:debug></s:debug>
<s:form action="depAction_edit" method="post" id="form1">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="6" class="title center" style="color:red">这里是修改【部门】页面 
    </td>
    </tr>
  <tr class="line_g">
    <td width="10%" class="jianju10">上一级部门：</td>
    <td width="90%" class="jianju20"> 
	         <s:select list="#deptList" name="parentId" listKey="id" listValue="name" 
         		headerKey="" headerValue="请选择部门">
             </s:select>
        <s:hidden id="id" name="id" value="%{id}"></s:hidden>
    </td>
  </tr>
  <tr class="line_g">
    <td class="jianju10">部门名称：</td>
    <td class="jianju20">
    <s:textfield id="name" name="name" value="%{name}"></s:textfield>
   </td>
  </tr>
  <tr class="line_g">
    <td colspan="2">
    <s:submit value="修改" class="btn"></s:submit>
    </td>
    </tr>
</table>
</s:form>  
</div>
</div>
</div>
 </body>
</html>
